home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / comm / msivt321.zip / MSIVT3.INI < prev   
Text File  |  1991-06-25  |  10KB  |  233 lines

  1. ; MSIVT3.INI - MS-DOS Kermit keyboard setup for DEC VT200-300 series
  2. ; terminals.  Originally contributed by Kevin Lowey, University of
  3. ; Saskatchewan Computing Services.  For use only with MS-DOS Kermit 3.10
  4. ; or later.  Adapted for new features of version 3.10 at Columbia University.
  5. ; Further modified by Kevin Lowey to correct some problems in the original
  6. ; keyboard layouts.
  7. ;
  8. ; Two different setups are provided, one for the 101-key extended PC keyboard,
  9. ; one for the 88-key original keyboard.  This file (when used with MS-DOS
  10. ; Kermit 3.10 or later, automatically determines which kind of keyboard you
  11. ; have.  See the comments in the file to learn the key assignments.
  12. ;
  13. ; NOTE: The key assignments made by this file comprise just one of an infinite
  14. ; number of possible arrangements.  No two people agree about how best to map
  15. ; DEC keyboard keys to IBM PC keys.  If the mappings done by this file do not
  16. ; suit your taste, feel free to make modifications.
  17. ;
  18. ; Usage: TAKE MSIVT3.INI (or put this command in your MSKERMIT.INI file).
  19. ; If you will be emulating a VT220 or VT320 terminal on a DEC VAX computer 
  20. ; VMS 5.0 or later, also uncomment the following command:
  21. ;
  22. ;;; SET TERMINAL DISPLAY 8
  23.  
  24. ; If you need to use the ISO Latin-1 character set in the 7-bit environment
  25. ; with the host sending Shift-In/Shift-Out (Ctrl-N/Ctrl-O) to switch between
  26. ; ASCII and special characters, uncomment the following command:
  27. ;
  28. ;;; set terminal character-set latin1 G1
  29.  
  30. ; Standard VT terminal settings
  31. ;
  32. set term tabs at 1:8
  33.  
  34. ; Version test
  35. ;
  36. if not < version 310 goto systest
  37. echo MSIVT3.INI requires MS-DOS Kermit Version 3.10 or later.
  38. pop
  39.  
  40. ; System check
  41. ;
  42. :systest
  43. if eq "\v(platform)" "IBM-PC" goto kbtest
  44. echo MSIVT3.INI is only for IBM PCs, PS/2s, and compatibles.
  45. pop
  46.  
  47. ; Automatic keyboard test
  48. ;
  49. :kbtest
  50. if equal "\v(keyboard)" "88" goto kb88
  51. if equal "\v(keyboard)" "101" goto kb101
  52. echo Keyboard type "\v(keyboard)" not supported by MSIVT3.INI.
  53. pop
  54.  
  55. :kb101
  56. echo MSIVT3.INI: IBM-101 Extended Keyboard Setup...
  57. ;
  58. ; ***************** IBM-101 Extended Keyboard Definitions ******************
  59. ;                           IBM KEY              DEC KEY
  60. ; Numeric Keypad
  61. ; There are two definitions for each of the numeric keypad keys,
  62. ; one for when <NUM-LOCK> is pressed, and one when it isn't.
  63. set key \850 \kkp0        ; Keypad 0 (Numlock)   Keypad 0
  64. set key \338 \kkp0        ; Keypad 0 (Normal)    Keypad 0
  65. set key \847 \kkp1        ; Keypad 1 (Numlock)   Keypad 1
  66. set key \335 \kkp1        ; Keypad 1 (Normal)    Keypad 1
  67. set key \848 \kkp2        ; Keypad 2 (Numlock)   Keypad 2
  68. set key \336 \kkp2        ; Keypad 2 (Normal)    Keypad 2
  69. set key \849 \kkp3        ; Keypad 3 (Numlock)   Keypad 3
  70. set key \337 \kkp3        ; Keypad 3 (Normal)    Keypad 3
  71. set key \843 \kkp4        ; Keypad 4 (Numlock)   Keypad 4
  72. set key \331 \kkp4        ; Keypad 4 (Normal)    Keypad 4
  73. set key \844 \kkp5        ; Keypad 5 (Numlock)   Keypad 5
  74. set key \332 \kkp5        ; Keypad 5 (Normal)    Keypad 5
  75. set key \845 \kkp6        ; Keypad 6 (Numlock)   Keypad 6
  76. set key \333 \kkp6        ; Keypad 6 (Normal)    Keypad 6
  77. set key \839 \kkp7        ; Keypad 7 (Numlock)   Keypad 7
  78. set key \327 \kkp7        ; Keypad 7 (Normal)    Keypad 7
  79. set key \840 \kkp8        ; Keypad 8 (Numlock)   Keypad 8
  80. set key \328 \kkp8        ; Keypad 8 (normal)    Keypad 8
  81. set key \841 \kkp9        ; Keypad 9 (Numlock)   Keypad 9
  82. set key \329 \kkp9        ; Keypad 9 (Normal)    Keypad 9
  83.  
  84. set key \334  \kkpminus   ; Keypad +             Keypad -
  85. set key \2382 \kkpcoma    ; ALT Keypad +         Keypad ,
  86. set key \851  \kkpdot     ; Keypad . (Numlock)   Keypad .
  87. set key \339  \kkpdot     ; Keypad . (normal)    Keypad .
  88. set key \4365 \Kkpenter   ; Keypad Enter         Keypad Enter
  89.  
  90.                           ; F1                   PF1 (default Kermit)
  91.                           ; Use programs like GOLD to make NUM-LOCK PF1.
  92. set key \4399 \kPF2       ; Keypad /             PF2
  93. set key \311  \kPF3       ; Keypad *             PF3
  94. set key \330  \kPF4       ; Keypad -             PF4 Key
  95.  
  96. ; F1 thru F20 keys        IBM                    DEC
  97. set key \1374 \kholdscrn  ; Control-F1           F1
  98. set key \1375 \kprtscn    ; Control-F2           F2
  99. set key \1376 \khelp      ; Control-F3           Setup
  100. ; No Definition           ; Control-F4           F4
  101.  
  102.  
  103. ; Default mapping         ; F1                   Gold (PF1)
  104. ; Default Mapping         ; F2                   PF2
  105. ; Default Mapping         ; F3                   PF3
  106. ; Default Mapping         ; F4                   PF4
  107. set key \319 \kbreak      ; F5                   Break
  108. set key \320 \Kdecf6      ; F6                   DEC F6
  109. set key \321 \Kdecf7      ; F7                   DEC F7
  110. set key \322 \KdecF8      ; F8                   DEC F8
  111. set key \323 \KdecF9      ; F9                   DEC F9
  112. set key \324 \KdecF10     ; F10                  DEC F10
  113. set key \389 \kdechelp    ; F11                  DEC Help
  114. set key \390 \kdecdo      ; F12                  DEC Do
  115. set key \2408 \kdecF11    ; Alt-F1               F11
  116. set key \2409 \kdecF12    ; Alt-F2               F12
  117. set key \2410 \kdecF13    ; Alt-F3               F13
  118. set key \2411 \kdecF14    ; Alt-F4               F14
  119. set key \2412 \kdechelp   ; Alt-F5               Help (F15)
  120. set key \2413 \kdecdo     ; Alt-F6               Do (F16)
  121. set key \2414 \kdecF17    ; Alt-F7               F17
  122. set key \2415 \kdecF18    ; Alt-F8               F18
  123. set key \2416 \kdecF19    ; Alt-F9               F19
  124. set key \2417 \kdecF20    ; Alt-F10              F20
  125.  
  126. ; Cursor Keypad
  127. set key \4434 \kdecinsert ; Gray Insert          DEC Insert Here
  128. set key \4435 \kdecRemove ; Gray Delete          DEC Remove
  129. set key \4423 \kdecFind   ; Gray Home            DEC Find
  130. set key \4431 \KdecSelect ; Gray End             DEC Select
  131. set key \4425 \KDecPrev   ; Gray Page Up         DEC Prev Screen
  132. set key \4433 \KDecNext   ; Gray Page Down       DEC Next Screen
  133. pop
  134.  
  135. :kb88
  136. echo MSIVT3.INI: IBM-88 Original Keyboard Setup...
  137. ;
  138. ; Key Definitions:
  139. ;
  140. ; The numeric keypad is mapped as follows:
  141. ;
  142. ;        IBM Function                     VT100 Keys
  143. ;     Normal      Shifted           On the Numeric Keypad
  144. ;  -------------------------      -------------------------
  145. ;  |  F1 |  F2 | SF1 | SF2 |      | PF1 | PF2 | PF3 | PF4 |
  146. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  147. ;  |  F3 |  F4 | SF3 | SF4 |      |  7  |  8  |  9  |  -  |
  148. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  149. ;  |  F5 |  F6 | SF5 | SF6 |      |  4  |  5  |  6  |  ,  |
  150. ;  |-----+-----+-----+-----|      |-----+-----+-----+-----|
  151. ;  |  F7 |  F8 | SF7 | SF8 |      |  1  |  2  |  3  |     |
  152. ;  |-----------+-----|-----|      |-----------+-----|ENTER|
  153. ;  |  F9 | F10 | SF9 | F10 |      |     0     |  .  |     |
  154. ;  -------------------------      -------------------------
  155. ;
  156. ; F9  is defined as DEC's Keypad-0 key.
  157. ; F10 is defined as DEC's Keypad-Enter key.
  158. ; SF9 is defined as DEC's Keypad-DOT key.
  159. ;
  160. ; The DEC F1 to F10 keys are mapped to the PC's Ctrl-F1 through Ctrl-F10 keys.
  161. ; The DEC F11 to F20 keys are mapped to the PC's Alt-F1 to Alt-F10 keys.
  162. ;
  163. ;  Definition               PC key         DEC key
  164. set key \315 \kpf1        ; F1             PF1
  165. set key \316 \kpF2        ; F2             PF2
  166. set key \317 \kkp7        ; F3             Keypad 7
  167. set key \318 \kkp8        ; F4             Keypad 8
  168. set key \319 \kkp4        ; F5             Keypad 4
  169. set key \320 \kkp5        ; F6             Keypad 5
  170. set key \321 \kkp1        ; F7             Keypad 1
  171. set key \322 \kkp2        ; F8             Keypad 2
  172. set key \323 \kkp0        ; F9             Keypad 0
  173. set key \324 \kkpenter    ; F10            Keypad Enter
  174.  
  175. set key \852 \kpf3        ; Shift-F1       PF3
  176. set key \853 \kpf4        ; Shift-F2       PF4
  177. set key \854 \kkp9        ; Shift-F3       Keypad 9
  178. set key \855 \kkpminus    ; Shift-F4       Keypad Minus
  179. set key \856 \kkp6        ; Shift-F5       Keypad 6
  180. set key \857 \kkpcoma     ; Shift-F6       Keypad Comma
  181. set key \858 \kkp3